package com.foreverwin.jzymes.framework.quartz.service.impl;

import com.foreverwin.jzymes.framework.quartz.domain.SysJobLog;
import com.foreverwin.jzymes.framework.quartz.mapper.SysJobLogMapper;
import com.foreverwin.jzymes.framework.quartz.service.ISysJobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 点检任务记录 服务层实现
 * 
 * @author ervin
 * @date 2019-03-13
 */
@Service
public class SysJobLogServiceImpl implements ISysJobLogService
{
	@Autowired
	private SysJobLogMapper sysJobLogMapper;

	/**
     * 查询点检任务记录信息
     * 
     * @param handle 点检任务记录ID
     * @return 点检任务记录信息
     */
    @Override
	public SysJobLog selectSysJobLogById(String handle)
	{
	    return sysJobLogMapper.selectSysJobLogById(handle);
	}
	
	/**
     * 查询点检任务记录列表
     * 
     * @param sysJobLog 点检任务记录信息
     * @return 点检任务记录集合
     */
	@Override
	public List<SysJobLog> selectSysJobLogList(SysJobLog sysJobLog)
	{
	    return sysJobLogMapper.selectSysJobLogList(sysJobLog);
	}
	
    /**
     * 新增点检任务记录
     * 
     * @param sysJobLog 点检任务记录信息
     * @return 结果
     */
	@Override
	public int insertSysJobLog(SysJobLog sysJobLog)
	{
	    return sysJobLogMapper.insertSysJobLog(sysJobLog);
	}
	
	/**
     * 修改点检任务记录
     * 
     * @param sysJobLog 点检任务记录信息
     * @return 结果
     */
	@Override
	public int updateSysJobLog(SysJobLog sysJobLog)
	{
	    return sysJobLogMapper.updateSysJobLog(sysJobLog);
	}

	/**
     * 删除点检任务记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSysJobLogByIds(String ids)
	{
		return sysJobLogMapper.deleteSysJobLogByIds(ids.split(","));
	}
	
}
